package com.mju.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import com.mju.utils.RespData;

@RestControllerAdvice
public class GlobalExceptionController {

	@ExceptionHandler(Exception.class)
	public RespData handlerException(Exception ex) {
		return RespData.failed(ex);
	}
}
